.class public Lcom/estrongs/android/ui/adapter/c;
.super Landroid/widget/BaseAdapter;
.source "GridAdapter_View.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:I

.field private c:[Landroid/graphics/drawable/Drawable;

.field private d:[Ljava/lang/String;

.field private e:Lcom/estrongs/android/ui/theme/b;

.field protected f:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    .line 1
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    const/16 v0, 0x9

    .line 2
    iput v0, p0, Lcom/estrongs/android/ui/adapter/c;->b:I

    const/4 v0, 0x0

    .line 3
    iput v0, p0, Lcom/estrongs/android/ui/adapter/c;->f:I

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->a:Landroid/content/Context;

    .line 5
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->e:Lcom/estrongs/android/ui/theme/b;

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/android/ui/adapter/c;->getCount()I

    move-result p1

    new-array p1, p1, [Landroid/graphics/drawable/Drawable;

    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->c:[Landroid/graphics/drawable/Drawable;

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/c;->e:Lcom/estrongs/android/ui/theme/b;

    const v2, 0x7f0809fa

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    aput-object v1, p1, v0

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->e:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809fb

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x1

    aput-object v0, p1, v1

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->e:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809fc

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x2

    aput-object v0, p1, v1

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->e:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809fd

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x3

    aput-object v0, p1, v1

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->e:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809fe

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x4

    aput-object v0, p1, v1

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->e:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809ff

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x5

    aput-object v0, p1, v1

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->e:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809f7

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x6

    aput-object v0, p1, v1

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->e:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809f8

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x7

    aput-object v0, p1, v1

    .line 15
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->e:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809f9

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/16 v1, 0x8

    aput-object v0, p1, v1

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->a:Landroid/content/Context;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v0, 0x7f030019

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/c;->d:[Ljava/lang/String;

    .line 17
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 18
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object p1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    if-eqz p1, :cond_1

    .line 19
    invoke-virtual {p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->z()I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/ui/adapter/c;->f:I

    goto :goto_1

    :cond_1
    const/4 p1, -0x1

    .line 20
    iput p1, p0, Lcom/estrongs/android/ui/adapter/c;->f:I

    :goto_1
    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object v0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    if-eqz v0, :cond_1

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->z()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/ui/adapter/c;->f:I

    goto :goto_1

    :cond_1
    const/4 v0, -0x1

    .line 4
    iput v0, p0, Lcom/estrongs/android/ui/adapter/c;->f:I

    :goto_1
    return-void
.end method

.method public getCount()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/adapter/c;->b:I

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 0

    const/4 p1, 0x0

    return-object p1
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3

    if-nez p2, :cond_0

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/ui/adapter/c;->a:Landroid/content/Context;

    invoke-static {p2}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const p3, 0x7f0c01c3

    const/4 v0, 0x0

    invoke-virtual {p2, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    :cond_0
    const p3, 0x7f09051a

    .line 2
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->c:[Landroid/graphics/drawable/Drawable;

    aget-object v0, v0, p1

    invoke-virtual {p3, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->a:Landroid/content/Context;

    const/high16 v1, 0x40800000    # 4.0f

    invoke-static {v0, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v0

    iget-object v2, p0, Lcom/estrongs/android/ui/adapter/c;->a:Landroid/content/Context;

    .line 5
    invoke-static {v2, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v1

    const/4 v2, 0x0

    .line 6
    invoke-virtual {p3, v2, v0, v2, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    const p3, 0x7f0906a5

    .line 7
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/c;->d:[Ljava/lang/String;

    aget-object v0, v0, p1

    invoke-virtual {p3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 9
    iget p3, p0, Lcom/estrongs/android/ui/adapter/c;->f:I

    if-ne p1, p3, :cond_1

    const p1, 0x7f080812

    .line 10
    invoke-virtual {p2, p1}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_0

    :cond_1
    const p1, 0x7f080816

    .line 11
    invoke-virtual {p2, p1}, Landroid/view/View;->setBackgroundResource(I)V

    :goto_0
    return-object p2
.end method
